<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.jiadakeji.ppm.modules.sys.utils.*" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>单人每日收费明细</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function() {

        });
        function page(n,s){
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/business/report/person">小区欠费总报表</a></li>
</ul>
<form:form id="searchForm" modelAttribute="reportFeeChargeDTO" action="${ctx}/business/report/getReportLackMoney" method="post" class="breadcrumb form-search">
    <li><label>缴费月份ID：</label>
        <form:select path="feeMonthId" class="input-medium">
            <form:option value="" label=""/>
            <form:options items="${fns:getFeeMonthList()}" itemLabel="monthString" itemValue="id" htmlEscape="false"/>
        </form:select>
    </li>
    <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
    <li class="clearfix"></li>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>小区</th>
        <th>应收金额</th>
        <th>欠费金额</th>
        <th>查看明细</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${reportList}" varStatus="" var="reportFeeChargeDTO">
        <tr>
            <td>
                    ${reportFeeChargeDTO.communityName}
            </td>
            <td>
                    ${reportFeeChargeDTO.totalMoney}
            </td>
            <td>
                    ${reportFeeChargeDTO.lackMoney}
            </td>
            <td>
                <c:if test="${reportFeeChargeDTO.communityId != '0'}">
                <a href="${ctx}/business/report/getReportLackMoneyDetail?communityId=${reportFeeChargeDTO.communityId}">楼栋明细</a>
                </c:if>
                <td>
                <c:if test="${reportFeeChargeDTO.communityId != '0'}">
                    <a href="${ctx}/business/report/getReportLackRoom?communityId=${reportFeeChargeDTO.communityId}">户主明细</a>
                </c:if>
                </td>
            </td>

        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>
